// Package mynum
// @Author: zhangdi
// @File: slice
// @Version: 1.0.0
// @Date: 2023/10/16 13:52
package mynum

//HasIntersection 判断两个切片是否有交集
func HasIntersection[T Numbers](a, b Slice[T]) bool {
	for _, v := range a {
		for _, w := range b {
			if v == w {
				return true
			}
		}
	}
	return false
}
